package com.jianqiao.delivery.delivery.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.poi.hpsf.Decimal;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("t_gl_package_details")
public class TGlPackageDetailsEntity {
    @TableId
    private long id;

    @TableField("order_number")
    private String orderNumber;

    @TableField("delivery_number")
    private String deliveryNumber;

    @TableField("length")
    private double length;

    @TableField("width")
    private double width;

    @TableField("height")
    private double height;

    @TableField("weight")
    private double weight;

    @TableField("status")
    private String status;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

    @TableField("product_name")
    private String productName;

    @TableField("number_of_pieces")
    private Integer numberOfPieces;

    @TableField("unit_price")
    private BigDecimal unitPrice;

    @TableField("plate_number")
    private String plateNumber;

    @TableField("express_company")
    private String expressCompany;

    @TableField("barcode_url")
    private String barcodeUrl;

    @TableField("in_or_out")
    private String inOrOut;
}
